﻿<?xml version="1.0" encoding="utf-8"?>
<witd:WITD application="Work item type editor" version="1.0" xmlns:witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE name="User Case">
    <DESCRIPTION>Inclui informações para acompanhar o caso de uso.</DESCRIPTION>
    <FIELDS>
      <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension">
        <HELPTEXT>A iteração do produto com que esta tarefa está associada.</HELPTEXT>
      </FIELD>
      <FIELD name="Iteration ID" refname="System.IterationId" type="Integer" />
      <FIELD name="External Link Count" refname="System.ExternalLinkCount" type="Integer" />
      <FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />
      <FIELD name="Hyperlink Count" refname="System.HyperLinkCount" type="Integer" />
      <FIELD name="Attached File Count" refname="System.AttachedFileCount" type="Integer" />
      <FIELD name="Node Name" refname="System.NodeName" type="String" />
      <FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension">
        <HELPTEXT>A área do produto com o qual esta tarefa está associada.</HELPTEXT>
      </FIELD>
      <FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" reportable="detail" />
      <FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension" />
      <FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension" />
      <FIELD name="Area ID" refname="System.AreaId" type="Integer" />
      <FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" syncnamechanges="true" />
      <FIELD name="Title" refname="System.Title" type="String" reportable="dimension">
        <HELPTEXT>Breve descrição da tarefa usada para diferenciá-la em uma lista ou relatório.</HELPTEXT>
        <REQUIRED />
      </FIELD>
      <FIELD name="State" refname="System.State" type="String" reportable="dimension">
        <HELPTEXT>O estado de fluxo de trabalho da tarefa</HELPTEXT>
      </FIELD>
      <FIELD name="Authorized Date" refname="System.AuthorizedDate" type="DateTime" />
      <FIELD name="Watermark" refname="System.Watermark" type="Integer" />
      <FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />
      <FIELD name="Changed By" refname="System.ChangedBy" type="String" syncnamechanges="true" reportable="dimension">
        <ALLOWEXISTINGVALUE />
        <VALIDUSER />
      </FIELD>
      <FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension">
        <HELPTEXT>A razão pela qual a tarefa está no estado atual.</HELPTEXT>
      </FIELD>
      <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
        <HELPTEXT>Responsável atual da tarefa</HELPTEXT>
        <ALLOWEXISTINGVALUE />
        <VALIDUSER />
      </FIELD>
      <FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />
      <FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension" />
      <FIELD name="Created By" refname="System.CreatedBy" type="String" syncnamechanges="true" reportable="dimension" />
      <FIELD name="Description" refname="System.Description" type="HTML">
        <HELPTEXT>Como implementar esta tarefa, com links para recursos e documentos comprovativos.</HELPTEXT>
      </FIELD>
      <FIELD name="History" refname="System.History" type="History">
        <HELPTEXT>Tópico de discussão e informações históricas.</HELPTEXT>
      </FIELD>
      <FIELD name="Related Link Count" refname="System.RelatedLinkCount" type="Integer" />
      <FIELD name="Tags" refname="System.Tags" type="PlainText" />
      <FIELD name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate" type="DateTime">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
        <WHENCHANGED field="System.State">
          <SERVERDEFAULT from="clock" />
        </WHENCHANGED>
      </FIELD>
      <FIELD name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Resolved Date" refname="Microsoft.VSTS.Common.ResolvedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Resolved Reason" refname="Microsoft.VSTS.Common.ResolvedReason" type="String" reportable="dimension" />
      <FIELD name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Priority" refname="Microsoft.VSTS.Common.Priority" type="Integer" reportable="dimension">
        <HELPTEXT>Prioridade para completar a tarefa, com base em objetivos do negócio.</HELPTEXT>
        <DEFAULT from="value" value="2" />
        <REQUIRED />
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="1" />
          <LISTITEM value="2" />
          <LISTITEM value="3" />
          <LISTITEM value="4" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="Stack Rank" refname="Microsoft.VSTS.Common.StackRank" type="Double" reportable="dimension">
        <HELPTEXT>Work first on items with lower-valued stack rank. Set in triage.</HELPTEXT>
      </FIELD>
      <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
        <HELPTEXT>Build em que a tarefa foi concluída</HELPTEXT>
        <SUGGESTEDVALUES expanditems="true">
          <LISTITEM value="&lt;Nenhum&gt;" />
        </SUGGESTEDVALUES>
      </FIELD>
      <FIELD name="Remaining Work" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="Double" reportable="measure" formula="sum">
        <HELPTEXT>Estimativa de trabalho restante para completar a tarefa.</HELPTEXT>
      </FIELD>
      <FIELD name="Original Estimate" refname="Microsoft.VSTS.Scheduling.OriginalEstimate" type="Double" reportable="measure" formula="sum">
        <HELPTEXT>A estimativa inicial de trabalho necessário para completar a tarefa</HELPTEXT>
      </FIELD>
      <FIELD name="Completed Work" refname="Microsoft.VSTS.Scheduling.CompletedWork" type="Double" reportable="measure" formula="sum">
        <HELPTEXT>O trabalho que foi concluído para esta tarefa.</HELPTEXT>
      </FIELD>
      <FIELD name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate" type="DateTime" reportable="dimension" />
      <FIELD name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate" type="DateTime" reportable="dimension" />
      <FIELD name="Blocked" refname="Microsoft.VSTS.CMMI.Blocked" type="String" reportable="dimension">
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Yes" />
          <LISTITEM value="No" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="No" />
        <REQUIRED />
      </FIELD>
      <FIELD name="Triage" refname="Microsoft.VSTS.Common.Triage" type="String" reportable="dimension">
        <HELPTEXT>Situação da triagem na tarefa</HELPTEXT>
        <DEFAULT from="value" value="Pendente" />
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Triagem" />
          <LISTITEM value="Informação Recebida" />
          <LISTITEM value="Pendente" />
          <LISTITEM value="Mais Informações" />
        </ALLOWEDVALUES>
        <REQUIRED />
      </FIELD>
      <FIELD name="Baseline" refname="PoC.Baseline" type="String" />
      <FIELD name="Discipline" refname="Microsoft.VSTS.Common.Discipline" type="String" reportable="dimension">
        <HELPTEXT>A disciplina à qual a tarefa pertence.</HELPTEXT>
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Development" />
          <LISTITEM value="Test" />
          <LISTITEM value="User Experience" />
          <LISTITEM value="Analysis" />
          <LISTITEM value="Training" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="Task Type" refname="Microsoft.VSTS.CMMI.TaskType" type="String" reportable="dimension">
        <DEFAULT from="value" value="Planning" />
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Mitigation Action" />
          <LISTITEM value="Corrective Action" />
          <LISTITEM value="Planning" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="Requires Review" refname="Microsoft.VSTS.CMMI.RequiresReview" type="String">
        <DEFAULT from="value" value="No" />
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Yes" />
          <LISTITEM value="No" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="Requires Test" refname="Microsoft.VSTS.CMMI.RequiresTest" type="String">
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Yes" />
          <LISTITEM value="No" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="No" />
      </FIELD>
      <FIELD name="Tipo do Caso de Uso" refname="Lambda3.CasoDeUso.Tipo" type="String" reportable="dimension">
        <REQUIRED />
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="Functional" />
          <LISTITEM value="Not Functional" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD name="Fluxo Alternativo" refname="Lambda3.CasoUso.FluxoAlternativo" type="HTML" />
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Removed" />
        <STATE value="Proposed" />
        <STATE value="Analysis" />
        <STATE value="in Development" />
        <STATE value="Developed" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="Analysis" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="in Development" to="Developed">
          <REASONS>
            <DEFAULTREASON value="Review / Test accepted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="" to="Proposed">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
          <FIELDS>
            <FIELD refname="System.AssignedTo">
              <DEFAULT from="currentuser" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="in Development" to="Analysis">
          <REASONS>
            <DEFAULTREASON value="Requires analysis" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Analysis" to="in Development">
          <REASONS>
            <DEFAULTREASON value="Accepted for development" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Proposed" to="Analysis">
          <REASONS>
            <DEFAULTREASON value="Analyze" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <ALLOWEXISTINGVALUE />
              <VALIDUSER />
              <COPY from="currentuser" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Analysis" to="Proposed">
          <REASONS>
            <DEFAULTREASON value="Rejected" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Developed" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="in Development" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Developed" to="Analysis">
          <REASONS>
            <DEFAULTREASON value="Review / Test failed" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Proposed" to="Removed">
          <REASONS>
            <DEFAULTREASON value="Removed" />
          </REASONS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="70">
            <Control FieldName="System.Title" Type="FieldControl" Label="Title:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Status">
              <Column PercentWidth="100">
                <Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assigned to:" LabelPosition="Left" />
                <Control FieldName="System.State" Type="FieldControl" Label="State:" LabelPosition="Left" />
                <Control FieldName="System.Reason" Type="FieldControl" Label="Reason:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Classificação">
              <Column PercentWidth="100">
                <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="Area:" LabelPosition="Left" />
                <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Iteration:" LabelPosition="Left" />
                <Control FieldName="Microsoft.VSTS.Common.Discipline" Type="FieldControl" Label="Discipline:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Planning">
              <Column PercentWidth="30">
                <Control FieldName="Microsoft.VSTS.Common.Priority" Type="FieldControl" Label="Priority:" LabelPosition="Left" />
                <Control FieldName="Microsoft.VSTS.CMMI.Blocked" Type="FieldControl" Label="Blocked:" LabelPosition="Left" />
              </Column>
              <Column PercentWidth="30" />
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Effort:">
              <Column PercentWidth="30">
                <Control FieldName="Microsoft.VSTS.Scheduling.OriginalEstimate" Type="FieldControl" Label="Original Estimative:" LabelPosition="Left" />
              </Column>
              <Column PercentWidth="70" />
            </Group>
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Primary flow">
            <Group Label="Description:">
              <Column PercentWidth="70">
                <Control FieldName="System.Description" Type="HtmlFieldControl" LabelPosition="Top" Dock="Fill" />
              </Column>
            </Group>
          </Tab>
          <Tab Label="Alternative Flow">
            <Group Label="">
              <Column PercentWidth="100">
                <Control FieldName="Lambda3.CasoUso.FluxoAlternativo" Type="HtmlFieldControl" LabelPosition="Left" />
              </Column>
            </Group>
          </Tab>
          <Tab Label="Implementation">
            <Control Type="LinksControl" Label="Related Use Cases:" LabelPosition="Top" Name="Hierarchy">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.Id" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="System.LinkTypes.Hierarchy" />
                </WorkItemLinkFilters>
                <ExternalLinkFilters FilterType="excludeAll" />
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="Caso de Uso" />
                  <Filter WorkItemType="Demanda" />
                </WorkItemTypeFilters>
              </LinksControlOptions>
            </Control>
            <Control Type="LinksControl" Label="Related Requirements:" LabelPosition="Top" Name="Demanda">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.Id" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
                <WorkItemLinkFilters FilterType="includeAll" />
                <ExternalLinkFilters FilterType="includeAll" />
                <WorkItemTypeFilters Scope="project" FilterType="include">
                  <Filter WorkItemType="Demanda" />
                  <Filter WorkItemType="Requisito" />
                  <Filter WorkItemType="Solicitação de Mudança" />
                </WorkItemTypeFilters>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="QA">
            <Group>
              <Column PercentWidth="20">
                <Control FieldName="Microsoft.VSTS.CMMI.RequiresTest" Type="FieldControl" Label="Requires Test:" LabelPosition="Left" />
                <Control FieldName="Microsoft.VSTS.CMMI.RequiresReview" Type="FieldControl" Label="Requires Revision:" LabelPosition="Left" />
              </Column>
              <Column PercentWidth="80" />
            </Group>
            <Group Label="Test Cases affected:">
              <Column PercentWidth="100">
                <Control Type="LinksControl" LabelPosition="Left" Name="LinksParaCasosDeTeste">
                  <LinksControlOptions>
                    <LinkColumns>
                      <LinkColumn RefName="System.Id" />
                      <LinkColumn RefName="System.Title" />
                      <LinkColumn RefName="System.State" />
                    </LinkColumns>
                    <WorkItemLinkFilters FilterType="includeAll" />
                    <ExternalLinkFilters FilterType="includeAll" />
                    <WorkItemTypeFilters FilterType="include">
                      <Filter WorkItemType="Caso de Teste" />
                    </WorkItemTypeFilters>
                  </LinksControlOptions>
                </Control>
              </Column>
            </Group>
          </Tab>
          <Tab Label="Attachments">
            <Control Type="AttachmentsControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="History">
            <Group>
              <Column PercentWidth="100">
                <Control FieldName="System.History" Type="WorkItemLogControl" Label="History:" LabelPosition="Top" Dock="Fill" />
              </Column>
            </Group>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</witd:WITD>